import { IsEmail, IsNotEmpty } from "class-validator";

export class LoginEntity{

    @IsNotEmpty({message:"邮箱地址不能为空"})
    @IsEmail({},{message:"您输入的邮箱地址不合法"})
    email:string;

    @IsNotEmpty({message:"验证码不能为空"})
    vcode:string;
}


export type LoginRequest = {
    currentUser: () => string
} & Request